package com.example.ch01androidspringboot.controller;

import com.example.ch01androidspringboot.enetity.User;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Test {

    @RequestMapping("/test/{username}")
    public User t1(@PathVariable("username")String name){
        System.out.println("进入");
        System.out.println(name);
        User user = new User("a", "123");
        return user;

    }
}
